Oddmuse Creole Markup Conversion to TiddlyWiki

 1st January 2023 at 4:54pm

Conversion Rules

for Oddmuse (Creole) markup conversion to Tiddlywiki markup:

  • bold: ** needs to become ''
  • blockquotes: """ needs to become <<< with a blank line above it
  • lists: first * needs a blank line above it; likewise first #
  • horizontal rule: first ---- needs a blank line above it
  • headers: leading = needs to become ! – and == becomes !!, etc. for each Header level 1 to 6; delete trailing =
  • links: replace single brackets [URL] with a labeled asterisk-reference link [[*|URL]]
  • labeled links: [[URL-or-WikiPage|label]] needs to swap order to become [[label|URL-or-WikiPage]]
  • inline image: in place of URL use [img[URL]] for image insertion
  • image link: <a href="URL-linked-image" target="_blank">[img["label_text"|URL-displayed-image]]</a> to open in new browser tab; omit target="_blank" to open in same window
  • tables:
    • first | ... | needs a blank line above it
    • no newlines can be in a table cell, so replace them with <br>, and replace \\ likewise
    • align table cells:
      • left-align via no-leading-spaces
      • right-align via no-trailing-spaces
      • center-align via both leading- and trailing-spaces
  • escaped strings: change words surrounded by three curly-brackets {{{...}}} into words surrounded by two back-tics ``...``